<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateKdAdministratorMenusTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('kd_administrator_menus', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('parent_id');
            $table->string('name')->comment('链接');
            $table->string('url')->comment('地址');
            $table->string('permission')->default('')->comment('权限');
            $table->string('icon')->default('')->comment('icon');
            $table->integer('sort')->default(0)->comment('升序');
            $table->tinyInteger('is_super')->default(0)->comment('超管独有');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('kd_administrator_menus');
    }
}
